package DesignPatterns.FactoryMode.order;

import DesignPatterns.FactoryMode.coffee.AmericanCoffee;
import DesignPatterns.FactoryMode.coffee.Coffee;

public  class createAmericanCoffee implements MethodFactory{


    @Override
    public Coffee createCoffee(String type) {
        Coffee coffee=new AmericanCoffee();
        coffee.setName(type);
        coffee.ok();
        return coffee;
    }
}
